Skip to content

dependency: bump github.com/olekukonko/tablewriter from 0.0.5 to 1.0.6#20008

Merged
ahrtr merged 1 commit intoetcd-io:mainfrom
ivanvc:bump-tablewriter-to-1.0.6
May 27, 2025
Merged

dependency: bump github.com/olekukonko/tablewriter from 0.0.5 to 1.0.6#20008
ahrtr merged 1 commit intoetcd-io:mainfrom
ivanvc:bump-tablewriter-to-1.0.6

Conversation

@ivanvc
Copy link
Member

@ivanvc ivanvc commented May 22, 2025

  • Updates changes to version 1.0.x API to build tables.
  • Updates the bill of materials.

Dependabot pull request: #19978

The table printers could be improved to keep them DRY (i.e., there's a lot of code repetition), and we could use table.Bulk() to add the items in bulk rather than iterating (refer to tablewriter migration guide). However, to keep the scope of the pull request small, it could be done in a follow-up PR.

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

* Updates changes to version 1.0.x API to build tables.
* Updates the bill of materials.

Dependabot pull request: etcd-io#19978

Signed-off-by: Ivan Valdes <ivan@vald.es>
@ivanvc ivanvc force-pushed the bump-tablewriter-to-1.0.6 branch from 7b485b3 to 4312b20 Compare May 22, 2025 06:54
@codecov
Copy link

codecov bot commented May 22, 2025

Codecov Report

Attention: Patch coverage is 0% with 18 lines in your changes missing coverage. Please review.

Project coverage is 68.78%. Comparing base (0287b75) to head (4312b20).
Report is 42 commits behind head on main.

Files with missing lines Patch % Lines
etcdctl/ctlv3/command/printer_table.go 0.00% 12 Missing ⚠️
etcdutl/etcdutl/printer_table.go 0.00% 6 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
etcdutl/etcdutl/printer_table.go 0.00% <0.00%> (ø)
etcdctl/ctlv3/command/printer_table.go 0.00% <0.00%> (ø)

... and 23 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #20008      +/-   ##
==========================================
- Coverage   68.80%   68.78%   -0.02%     
==========================================
  Files         424      424              
  Lines       35764    35764              
==========================================
- Hits        24606    24602       -4     
- Misses       9740     9744       +4     
  Partials     1418     1418              

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0287b75...4312b20. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshjms
Copy link
Member

joshjms commented May 22, 2025

It looks good to me. By the way just fixing the link for the migration guide: https://github.com/olekukonko/tablewriter/blob/master/MIGRATION.md. The change makes a lot of sense, thanks Ivan

@ivanvc
Copy link
Member Author

ivanvc commented May 22, 2025

It looks good to me. By the way just fixing the link for the migration guide: https://github.com/olekukonko/tablewriter/blob/master/MIGRATION.md. The change makes a lot of sense, thanks Ivan

Thanks. I updated the link in the description, too.

@ivanvc
Copy link
Member Author

ivanvc commented May 22, 2025

/cc @jmhbnz @ahrtr

@k8s-ci-robot k8s-ci-robot requested review from ahrtr and jmhbnz May 22, 2025 20:38
@ahrtr
Copy link
Member

ahrtr commented May 23, 2025

@ivanvc can you provide examples of the command output after the change? thx

@ivanvc
Copy link
Member Author

ivanvc commented May 27, 2025

@ivanvc can you provide examples of the command output after the change? thx

The output is the same. Ideally, we should have tests for the CLI tools, but that's where we have the least coverage.

Before:

$ git checkout main
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
$ rm -rf ./bin && make build &>/dev/null
$ ./bin/etcdutl hashkv -w table ./default.etcd/member/snap/db 
+------------+---------------+------------------+
|    HASH    | HASH REVISION | COMPACT REVISION |
+------------+---------------+------------------+
| 1084519789 |             1 |               -1 |
+------------+---------------+------------------+

After:

$ gh co 20008
Switched to branch 'bump-tablewriter-to-1.0.6'
Your branch is up to date with 'ivanvc/bump-tablewriter-to-1.0.6'.
Already up to date.
$ rm -rf ./bin && make build &>/dev/null
$ ./bin/etcdutl hashkv -w table ./default.etcd/member/snap/db 
┌────────────┬───────────────┬──────────────────┐
│    HASH    │ HASH REVISION │ COMPACT REVISION │
├────────────┼───────────────┼──────────────────┤
│ 1084519789 │             1 │               -1 │
└────────────┴───────────────┴──────────────────┘

@ahrtr
Copy link
Member

ahrtr commented May 27, 2025

thx for checking it.

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM & thx

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, ivanvc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ahrtr ahrtr merged commit 0e40709 into etcd-io:main May 27, 2025
34 checks passed
@ivanvc ivanvc deleted the bump-tablewriter-to-1.0.6 branch May 27, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants